//
//  NSArray+GetSecondItem.m
//  OC08_Category_Extension_Protocol
//
//  Created by dllo on 16/5/31.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "NSArray+GetSecondItem.h"

@implementation NSArray (GetSecondItem)


-(id)getSecondObject{
    if(self.count > 1){
        id secondObject = [self objectAtIndex:1];
        return secondObject;
    }else {
        NSLog(@"此数组没有第二个元素.");
        return nil;
    }
}

@end
